import network from '@/common/network.js'


//企业用户手机验证码登录
export const companyUserMobileLogin =data =>{
  return network({
    url: `em-boot/biz/api/companyUserMobileLogin`,
    data,
    method:'post',
    auth: true,
  })
}

//发送短信接口
export const smsAndLogin =userPhone =>{
  return network({
    url: 'em-boot/biz/api/sms',
    data:{
      userPhone
    },
    method: 'post',
    auth: true,
  })
}

//根据手机号码获取公司列表
export const getCompanyListByMobile=userPhone =>{
  return network({
    url: 'em-boot/biz/api/company/getCompanyListByMobile',
    data:{
      userPhone
    },
    auth: true,
  })
}


//用户退出接口
export const logoutUserInfo =data =>{
  return network({
    url: 'em-boot/biz/api/logout',
    data,
    method: 'post',
    auth: true,
  })
}

//用户重置密码
export const updatePwd =data =>{
  return network({
    url: 'em-boot/biz/api/updatePwd',
    data,
    method: 'post',
    auth: true,
  })
}
//帐号登录接口
export const bizLogin =data =>{
  return network({
    url: 'em-boot/biz/api/login',
    data,
    method: 'post',
    auth: true,
  })
}

//帐号登录接口
export const randomImage =param =>{
  return network({
    url: `em-boot/biz/api/randomImage/${param}`,
    auth: true,
  })
}